﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/QuanLyDuoc/QuanLyDuoc_OffCanvas.Master" AutoEventWireup="true" CodeBehind="BaoCaoTongHopPhieuNhapKho.aspx.cs" Inherits="HospitalManager.QuanLyDuoc.HeThongBaoCao.BaoCaoTongHopPhieuNhapKho.BaoCaoTongHopPhieuNhapKho" %>

<%@ Register Src="../HeThongBaoCao_LeftMenu.ascx" TagName="HeThongBaoCao_LeftMenu" TagPrefix="uc1" %>

<%@ Register Assembly="DevExpress.XtraReports.v13.1.Web, Version=13.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.XtraReports.Web" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .dxeBase {
            margin-bottom: 1px;
        }

        td.dxmtb.dxmMenu {
            padding: 0;
        }
    </style>
    <script type="text/javascript">
        function validationform_XemBaocao() {
            $("#<%= txtTuNgay.ClientID %>").rules("add", {
                required: true,
                messages: {
                    required: MsErrorEmpty
                }
            });
            $("#<%= txtDenNgay.ClientID %>").rules("add", {
                required: true,
                messages: {
                    required: MsErrorEmpty
                }
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
    <uc1:HeThongBaoCao_LeftMenu ID="HeThongBaoCao_LeftMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="form-horizontal">
        <div class="row">
            <div class="col-xs-1 col-md-1"></div>
            <div class="col-xs-3 col-md-3">
                <div class="form-group">
                    <div class="col-sm-12">
                        <asp:DropDownList ID="ddlKho_Khoa" ClientIDMode="Static" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>
            <div class="col-xs-3 col-md-3">
                <div class="form-group">
                    <div class="col-sm-12">
                        <asp:DropDownList ID="ddlNhaCungCap" ClientIDMode="Static" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>
            <div class="col-xs-4 col-md-4">
                <div class="form-group">
                    <div class="col-sm-12">
                        <div class="input-group">
                            <span class="input-group-addon">Từ ngày</span>
                            <asp:TextBox ID="txtTuNgay" ClientIDMode="Static" runat="server" CssClass="form-control ipdate dateFormat"
                                placeholder="Từ ngày">
                            </asp:TextBox>
                            <span class="input-group-addon" style="border-right: 0;">đến ngày</span>
                            <asp:TextBox ID="txtDenNgay" ClientIDMode="Static" runat="server" CssClass="form-control ipdate dateFormat"
                                placeholder="Đến ngày">
                            </asp:TextBox>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-1 col-md-1"></div>
            <div class="col-xs-3 col-md-3">
                <div class="form-group">
                    <div class="col-sm-12">
                        <asp:Button ID="btnXemBaoCao" ClientIDMode="Static" runat="server" Text="Xem báo cáo" CssClass="btn btn-success"
                            OnClientClick=" validationform_XemBaocao() " OnClick="btnXemBaoCao_Click" />
                    </div>
                </div>
            </div>
            <div class="col-xs-8 col-md-8">
                <dx:ReportToolbar ID="ReportToolbar1" runat="server" ShowDefaultButtons="False" ReportViewerID="rptBaoCao">
                    <Items>
                        <%--<dx:ReportToolbarButton ItemKind="Search" ToolTip="Tìm kiếm trong báo cáo" />
                        <dx:ReportToolbarSeparator />--%>
                        <dx:ReportToolbarButton ItemKind="PrintReport" ToolTip="In báo cáo" />
                        <dx:ReportToolbarButton ItemKind="PrintPage" ToolTip="In trang hiện tại" />
                        <dx:ReportToolbarSeparator />
                        <dx:ReportToolbarButton Enabled="False" ItemKind="FirstPage" ToolTip="Trang đầu" />
                        <dx:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" ToolTip="Trang cuối" />
                        <dx:ReportToolbarLabel ItemKind="PageLabel" Text="Trang" />
                        <dx:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
                        </dx:ReportToolbarComboBox>
                        <dx:ReportToolbarLabel ItemKind="OfLabel" Text="trong" />
                        <dx:ReportToolbarTextBox ItemKind="PageCount" />
                        <dx:ReportToolbarButton ItemKind="NextPage" ToolTip="Trang tiếp" />
                        <dx:ReportToolbarButton ItemKind="LastPage" ToolTip="Trang trước" />
                        <dx:ReportToolbarSeparator />
                        <dx:ReportToolbarButton ItemKind="SaveToDisk" ToolTip="Xuất theo định dạng và lưu" />
                        <%--<dx:ReportToolbarButton ItemKind="SaveToWindow" />--%>
                        <dx:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
                            <Elements>
                                <dx:ListElement Value="pdf" />
                                <dx:ListElement Value="xls" />
                                <dx:ListElement Value="xlsx" />
                                <dx:ListElement Value="rtf" />
                                <dx:ListElement Value="mht" />
                                <dx:ListElement Value="html" />
                                <dx:ListElement Value="txt" />
                                <dx:ListElement Value="csv" />
                                <dx:ListElement Value="png" />
                            </Elements>
                        </dx:ReportToolbarComboBox>
                    </Items>
                    <Styles>
                        <LabelStyle>
                            <Margins MarginLeft="3px" MarginRight="3px" />
                        </LabelStyle>
                    </Styles>
                </dx:ReportToolbar>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <dx:ReportViewer ID="rptBaoCao" runat="server" OnUnload="rptBaoCao_Unload" ReportName="rptBaoCaoTongHopPhieuNhapKho" Style="margin: 0 auto;">
                </dx:ReportViewer>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $("#li_baocaotonghopphieunhapkho").addClass("active");
            $("#li_hethongbaocao").addClass("active");
            $("#<%= ddlKho_Khoa.ClientID %>").parent().find(".dropdown-toggle").focus();
            $("#<%= txtDenNgay.ClientID %>").bind("keydown", function (e) {
                if (e.which === 13) {
                    e.preventDefault();
                    $("#<%= btnXemBaoCao.ClientID %>").focus();
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FormContent" runat="server">
</asp:Content>
